﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using MyFeer.Widget.Grid.Cell;

namespace MyFeer.Widget.Grid
{
    public class GridConst
    {
        /// <summary>
        /// 默认行高
        /// </summary>
        public const int DefaultRowHeight=22;
        /// <summary>
        /// 默认列宽
        /// </summary>
        public const int DefaultColumnWidth = 70;
        /// <summary>
        /// 默认滚动条的宽度
        /// </summary>
        public const int DefaultScrollWidth = 20;
        /// <summary>
        /// 默认列头的高度
        /// </summary>
        public const int DefaultColumnHeaderHeight = 22;
        /// <summary>
        /// 默认行头的宽度
        /// </summary>
        public const int DefaultRowHeaderWidth = 40;

        public static CellStyle HeaderCellStyle = new CellStyle()
        {
            BottomLineWidth=1,
            RightLineWidth=1,
            Background=Color.FromArgb(255,169,169,169)
        };

        public static Border SelectedCellStyle = new Border
        {
            BorderThickness=new Thickness(2,2,2,2),
            Background=new SolidColorBrush(Color.FromArgb(125,100,100,100)),
            BorderBrush=new SolidColorBrush(Colors.Black)
        };

    }
}
